﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;

namespace RealState.Utils
{
    public class BasePage : Page
    {
        public BasePage()
        {

        }
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            if (Convert.ToInt32(Session["RS-OWNERID"]) != 1)
            {
                Session.Add("RS-Theme", "Green");
                Page.Theme = ((string)Session["RS-Theme"]);
            }
            else
            {
                Page.Theme = ((string)Session["RS-Theme"]);
            }
        }
    }
}
